<ion-view view-title="{{'今日'}}机型销售">
	<ion-nav-bar class="bar-royal bar-clear" align-title="center">
		<ion-nav-back-button>
		</ion-nav-back-button>
		<ion-nav-buttons side="right">
			<button ng-controller="filterController" class="button button-icon ion-ios-calendar-outline" ng-click="showFilter()">
			</button>
		</ion-nav-buttons>
	</ion-nav-bar>
	<ion-content class="wrap-light data-table" scroll="false">
		<div class="bar bar-dark row row-center data-head">
			<div class="col">销售额</div>
			<div class="col">毛利</div>
			<div class="col col-half">毛利率</div>
		</div>
		<ion-scroll direction="y" class="has-header data-body">
			<div class="list">
				<a ng-repeat="brand in brandTotal" class="item" href="#/sell/brand-detail-{{brand.id}}">
					<header>
						<span class="item-index index-icon" ng-class="{'icon ion-ribbon-b': $index < 3,'assertive-bg':$index==0,'royal-bg':$index==1,'energized-bg':$index==2,'dark2-bg':$index>=3}">TOP{{$index + 1}}</span>
						<span ng-class="{'assertive':$index==0,'royal':$index==1,'energized':$index==2}"><b>{{ brand.type }}</b></span>
						<i class="icon-right icon ion-ios-arrow-right"></i>
						<span class="pull-right dark2">{{ brand.count }} 单</span>
					</header>
					<div class="row row-center">
						<div class="col">{{ brand.sales | currency:'￥' }}</div>
						<div class="col">{{ brand.margin | currency:'￥' }}</div>
						<div class="col col-half">{{ ((brand.margin / brand.sales) *100 |number:'2')+'%'}}</div>
					</div>
				</a>
			</div>
		</ion-scroll>
		<!-- 日期过滤器 -->
  		<div ng-include="'templates/common/model/filters.html'"></div>
	</ion-content>
</ion-view>
